<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增用户</title>
<link href="styles/core.css" rel="stylesheet" type="text/css">
<link href="styles/Master.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript">
var basePath = "<%=basePath%>";
</script>
<script type="text/javascript" src="scripts/system/user_add.js"></script>
</head>
<body>
<s:form name="userAddForm" onsubmit="return false;">
	<s:hidden id="isSuccess" value="%{isSuccess}"></s:hidden>
	<h2 style="text-align: left">新增用户</h2>
	<hr width="100%" align="left" size="1" color="#E1EEF8">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader">
    	<tr height="20px">
			<td class="tdBg_right" width="10%">用户名：</td>
			<td  align="left" width="40%">
				<s:textfield name="user.userName" id="userName" cssClass="input"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
			<td class="tdBg_right" width="10%">工作人员编号：
				<input type="button" value="..." class="btn_mouseout" onclick="selectWorker();return false;"
					onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
					onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
			</td>
			<td  align="left">
				<s:textfield name="user.workerCode" id="workerCode" cssClass="input" onblur="return getWorkerInfo();"></s:textfield>
				<s:label id="workerName"></s:label>
			</td>
		</tr>
    	<tr height="20px">
			<td class="tdBg_right">密码：</td>
			<td  align="left">
				<s:password name="user.pwd" id="pwd" cssClass="input"></s:password>
				<font color="#ff0000">*</font> &nbsp; <font color="#ff0000">密码最短为6位。</font>
			</td>
			<td class="tdBg_right">确认密码：</td>
			<td  align="left">
				<s:password name="pwd4Confirm" id="pwd4Confirm" cssClass="input"></s:password>
				<font color="#ff0000">*</font>
			</td>
		</tr>
    	<tr height="20px">
			<td class="tdBg_right">角色：</td>
			<td  align="left" colspan="3">
				<s:select name="user.roleId"  id="roleId" list="#request.roleList" listKey="columeId" listValue="name" required="true" cssStyle="width: 150px;" ></s:select>
				<font color="#ff0000">*</font>
			</td>
		</tr>
	</table>
	<center>
		<div style="padding: 4px 0pt;">
			<input type="button" value="保存" class="btn_mouseout" onclick="save();"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
			<input type="button" value="返回" class="btn_mouseout" onclick="back(true);"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
		</div>
	</center>
</s:form>
</body>
</html>